import request from '@/utils/request'

// 查询報價單列表
export function listQuote(query) {
  return request({
    url: '/biz/quote/list',
    method: 'get',
    params: query
  })
}

// 查询報價單详细
export function getQuote(id) {
  return request({
    url: '/biz/quote/' + id,
    method: 'get'
  })
}

// 新增報價單
export function addQuote(data) {
  return request({
    url: '/biz/quote',
    method: 'post',
    data: data
  })
}

// 修改報價單
export function updateQuote(data) {
  return request({
    url: '/biz/quote',
    method: 'put',
    data: data
  })
}

// 删除報價單
export function delQuote(id) {
  return request({
    url: '/biz/quote/' + id,
    method: 'delete'
  })
}
// 删除報價單
export function DownQuote(id) {
  return request({
    url: '/biz/quote/preview/' + id,
    responseType: "blob",
    method: 'get'
  })
}
// 删除報價單
export function SendQuote(id) {
  return request({
    url: '/biz/quote/send/' + id,
    method: 'post',

  })
}
